//1 引入连接数据库的工具类
let mongoose = require('../util/dbUtile')
// 2 创建数据结构（用户的）
let snapshotSchema = mongoose.Schema({
    name:String,
    nums:Number,
    payid:String,
    total:Number,
    preferential:String,
    note:String
});
//3 创建数据的模型
let snapshotModel = mongoose.model('snapshotModel', snapshotSchema, "snapshot");

//4 导出用户模型(***)
module.exports = snapshotModel